package com.yanqu.road.server.manager.activity.camp;

/**
 * @Author : Cxp
 * @Time : 2025-02-18
 * @Description : 阵营活动类型
 */

public enum eCampActivityType {
    PEAK_TONGBING(0), // 巅峰统兵
    TONGBING(1), // 统兵
    FIVE_HERO(2), // 五雄争霸
    CHUHAN(3); // 楚汉

    private final int code;

    eCampActivityType(int code) {
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }

    public static eCampActivityType forValue(int value) {
        for (eCampActivityType type : eCampActivityType.values()) {
            if (type.code == value) {
                return type;
            }
        }
        return null;
    }
}
